package org.ami.onlineschool.dataAccess;

import java.io.FileNotFoundException;
import java.util.Date;
import java.util.List;

import org.ami.onlineschool.model.Assignment;
import org.ami.onlineschool.model.School;

public class SchoolDataAccess extends AbstractDataAccess<School>{

	private static final String SCHOOL_XML_FILE = "/school.xml";

	public SchoolDataAccess(String dirPath) {
		super(dirPath, SCHOOL_XML_FILE);
	}

	public School getSchool() {
		return getTargetObject();
	}

	public void saveSchoolToDisk() throws FileNotFoundException {
		saveTargetObjectToDisk();
	}

	@Override
	protected School initializeTargetObject() {
		return new School();
	}

}
